package top.infopub.mgr.bpa.dao;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import top.infopub.dto.bpa.BusinessPaymentQueryDto;
import top.infopub.mgr.bpa.vo.BusinessPaymentVo;
import top.infopub.model.bpa.BusinessPayment;
import top.infopub.model.bpa.BusinessPaymentExample;

import java.util.List;

public interface BusinessPaymentDao {
    long countByExample(BusinessPaymentExample example);

    int deleteByExample(BusinessPaymentExample example);

    int deleteByPrimaryKey(String id);

    int insertBatch(List<BusinessPayment> records);

    int insert(BusinessPayment record);

    int insertSelective(BusinessPayment record);

    List<BusinessPayment> selectByExample(BusinessPaymentExample example);

    BusinessPayment selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") BusinessPayment record, @Param("example") BusinessPaymentExample example);

    int updateByExample(@Param("record") BusinessPayment record, @Param("example") BusinessPaymentExample example);

    int updateByPrimaryKeySelective(BusinessPayment record);

    int updateByPrimaryKey(BusinessPayment record);

    /**
     * 根据条件查询商务成本支付
     *
     * @param businessPaymentQueryDto 查询参数
     * @return
     * @see
     */
    Page<BusinessPaymentVo> selectByDomainWhere(BusinessPaymentQueryDto businessPaymentQueryDto);
}